<div class= "nested_comments">
	<div class="comment">
		<%= form_for(@comment, :id => dom_id(comment,'comment') ) do |f| %>
		  <% if @comment.errors.any? %>
		    <div id="error_explanation">
		      <h2><%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:</h2>

		      <ul>
		      <% @comment.errors.full_messages.each do |msg| %>
		        <li><%= msg %></li>
		      <% end %>
		      </ul>
		    </div>
		  <% end %>
		  <%= f.hidden_field :parent_id %> 
		  <%= f.hidden_field :user_id, :value=> @current_user.id%>
		  <%= f.hidden_field :post_id %>
		  <div class="field">
			<b><%= f.label :body, "Comentario: " %></b>
			<%= f.text_area :body,:rows => 3 %>
			<%= f.label :rating %></b>
			<%= f.select(:rating, [1,2,3,4,5,6,7], :selected => 4) %>
		  </div>
 
		  <div class="actions">
		    <%= f.submit %>
		  </div>
		<% end %>
	</div>
</div>
